package com.pzh.xzh.uaa.handler;


import com.pzh.xzh.uaa.result.ResultCodeEnum;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Data
public class HandlerException extends Exception {
    private Integer code;
    private String message;
    private boolean success;
    public HandlerException(ResultCodeEnum resultCodeEnum){
        this.code=resultCodeEnum.getCode();
        this.message=resultCodeEnum.getMessage();
        this.success=false;
    }
}
